package com.chen10.cattle.mapper;

import com.chen10.cattle.model.pojo.CattleTemperature;
import com.chen10.cattle.model.vo.TemperatureHistoryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author Administrator
* @description 针对表【cattle_temperature】的数据库操作Mapper
* @createDate 2025-03-16 18:06:25
* @Entity com.chen10.cattle.model.pojo.CattleTemperature
*/
@Mapper
public interface CattleTemperatureMapper {
    int insert(CattleTemperature temperature);
    List<CattleTemperature> selectDailyTemperatures(@Param("cattleId") Long cattleId,
                                                    @Param("date") Date date);
    CattleTemperature selectLatestTemperature(Long cattleId);

    // CattleTemperatureMapper.java
    List<TemperatureHistoryVO> selectTemperatureHistory(Long cattleId);
}




